from sqlalchemy import Column, Integer, String, func, DateTime, JSON, Boolean, ForeignKey
from sqlalchemy.orm import relationship

from models import Base


class WeeklyReport(Base):
    """周报表"""
    id = Column(Integer, primary_key=True, index=True, autoincrement=True)
    name = Column(String(500), unique=True, nullable=False, comment='项目名称')
    person = Column(JSON, nullable=False, comment='项目人员')
    description = Column(String(200), comment='项目描述')
    department = Column(String(50), nullable=False, comment='部门')
    level = Column(String(20), comment='优先级')
    attachment = Column(JSON, comment='附件')
